home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Magazine Collection 2001
/
Delphi Magazine Collection 20001 (2001).iso
/
DISKS
/
ISSUE23
/
PZAZZDEM
/
PZAZZDEM.ZIP
/
PZDEMO
/
PZDLABEL.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-12-13
|
2KB
|
67 lines
unit PZDLabel;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, ExtCtrls, PZBPanel, PZShaded, StdCtrls, PZLabel, PZSpButt;
type
TPZLabelForm = class(TForm)
HeaderPanel: TPZBitmapPanel;
PZShaded1: TPZShaded;
DescrPanel: TPZBitmapPanel;
PZLabel3: TPZLabel;
PZLabel4: TPZLabel;
ResultsPanel: TPZBitmapPanel;
PZLabel5: TPZLabel;
PZLabel2: TPZLabel;
OutputPanel: TPZBitmapPanel;
ResultsLabel: TPZLabel;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
procedure FormDeactivate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
PZLabelForm: TPZLabelForm;
implementation
Uses PZDMain;
{$R *.DFM}
Const
ExampleText ='Text can be \BBold, \n\IItalic,\n or \UUnderlined\n and can include\lb\lbline breaks\lb\lb '+
'and can have individualy \B\cRedwords\cn\n or \B\cBluel\cGreene\cRedt\cTealt\cMaroone\cOliver\cPurples\cn\n '+
'in different colors.\lb\lb\lb\lb\B\UAll in one label!';
procedure TPZLabelForm.FormCreate(Sender: TObject);
Begin
SetBounds(10,10,MainForm.ClientWidth-20,MainForm.ClientHeight-MainForm.MainPanel.Height-20);
HeaderPanel.Background.LoadBitmap('PZD_STONE');
DescrPanel.Background.LoadBitmap('PZD_STONE');
ResultsPanel.Background.LoadBitmap('PZD_STONE');
OutputPanel.Background.LoadBitmap('PZD_STONE');
ResultsLabel.Caption:=ExampleText;
End;
procedure TPZLabelForm.FormClose(Sender: TObject; var Action: TCloseAction);
Begin
Action:=caFree;
End;
procedure TPZLabelForm.FormDeactivate(Sender: TObject);
begin
Close;
end;
end.